package main

import "fmt"

//结构体

type Vertex struct {
	X int
	Y int
}

func main() {
	a := Vertex{1, 2}
	fmt.Println(a)
	fmt.Println(a.X)
	//结构体指针赋值
	b := &a
	(*b).X = 100
	fmt.Println(a)
}
